package com.cn.byjk.service;

import com.cn.byjk.mapper.FundMapper;
import com.cn.byjk.model.Fund;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author zhangdianzhi
 * @version v1.0
 * @description 基金
 * @date 2022/1/7 16:27
 */
@Service
public class FundService {

    @Autowired
    private FundMapper fundMapper;


    public BigDecimal getMoney(Long userid) {
        Fund fund = fundMapper.getFund(userid);
        return fund.getMoney();
    }
}
